<div class="post-list-container">
    <div class="post-inner">
        <% posts.forEach(function(post) { %>
            <div class="post gt-bg-theme-color-second">
                <div class="post-left">
                    <div>
                        <% if (post.isTop) { %>
                            <span class="sticky-top-flag gt-bg-accent-color-first">置顶</span>
                        <% } %>
                        <a href="<%= post.link %>">
                            <span class="post-title gt-c-content-color-first"><%= post.title %></span>
                        </a>
                    </div>
                    <div class="gt-post-content post-abstract gt-c-content-color-second">
                        <%- post.abstract %>
                    </div>
                    <div class="post-info">
                        <time class="post-time gt-c-content-color-first">
                            发布于 · <%= post.dateFormat %> ·
                        </time>
                        <% post.tags.forEach(function(tag) { %>
                            <a href="<%= tag.link %>" class="post-tag">
                                # <%= tag.name %>
                            </a>
                        <% }); %>
                    </div>
                </div>
                <% if (themeConfig.showFeatureImage && post.feature) { %>
                    <a href="<%= post.link %>" class="post-feature-image"
                       style="background-image: url('<%= post.feature %>')">
                    </a>
                <% } %>
            </div>
        <% }); %>
    </div>
</div>